

<%@ page import="com.surelution.projects.crm.GasList" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'gasList.label', default: 'GasList')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${gasListInstance}">
            <div class="errors">
                <g:renderErrors bean="${gasListInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${gasListInstance?.id}" />
                <g:hiddenField name="version" value="${gasListInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="actualAmount"><g:message code="gasList.actualAmount.label" default="Actual Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'actualAmount', 'errors')}">
                                    <g:textField name="actualAmount" value="${gasListInstance?.actualAmount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="bankCardAmount"><g:message code="gasList.bankCardAmount.label" default="Bank Card Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'bankCardAmount', 'errors')}">
                                    <g:textField name="bankCardAmount" value="${gasListInstance?.bankCardAmount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="bankCardNumber"><g:message code="gasList.bankCardNumber.label" default="Bank Card Number" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'bankCardNumber', 'errors')}">
                                    <g:textField name="bankCardNumber" value="${gasListInstance?.bankCardNumber}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="boardPrice"><g:message code="gasList.boardPrice.label" default="Board Price" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'boardPrice', 'errors')}">
                                    <g:textField name="boardPrice" value="${gasListInstance?.boardPrice}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="cashAmount"><g:message code="gasList.cashAmount.label" default="Cash Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'cashAmount', 'errors')}">
                                    <g:textField name="cashAmount" value="${gasListInstance?.cashAmount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="cashNumber"><g:message code="gasList.cashNumber.label" default="Cash Number" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'cashNumber', 'errors')}">
                                    <g:textField name="cashNumber" value="${gasListInstance?.cashNumber}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="converWeight"><g:message code="gasList.converWeight.label" default="Conver Weight" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'converWeight', 'errors')}">
                                    <g:textField name="converWeight" value="${gasListInstance?.converWeight}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="gasCardAmount"><g:message code="gasList.gasCardAmount.label" default="Gas Card Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'gasCardAmount', 'errors')}">
                                    <g:textField name="gasCardAmount" value="${gasListInstance?.gasCardAmount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="gasCode"><g:message code="gasList.gasCode.label" default="Gas Code" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'gasCode', 'errors')}">
                                    <g:textField name="gasCode" value="${gasListInstance?.gasCode}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="gasType"><g:message code="gasList.gasType.label" default="Gas Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'gasType', 'errors')}">
                                    <g:textField name="gasType" value="${gasListInstance?.gasType}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="gasCardNumber"><g:message code="gasList.gasCardNumber.label" default="Gas Card Number" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'gasCardNumber', 'errors')}">
                                    <g:textField name="gasCardNumber" value="${gasListInstance?.gasCardNumber}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="icCardAmount"><g:message code="gasList.icCardAmount.label" default="Ic Card Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'icCardAmount', 'errors')}">
                                    <g:textField name="icCardAmount" value="${gasListInstance?.icCardAmount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="icCardNumber"><g:message code="gasList.icCardNumber.label" default="Ic Card Number" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'icCardNumber', 'errors')}">
                                    <g:textField name="icCardNumber" value="${gasListInstance?.icCardNumber}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="integrationAmount"><g:message code="gasList.integrationAmount.label" default="Integration Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'integrationAmount', 'errors')}">
                                    <g:textField name="integrationAmount" value="${gasListInstance?.integrationAmount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="integrationNumber"><g:message code="gasList.integrationNumber.label" default="Integration Number" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'integrationNumber', 'errors')}">
                                    <g:textField name="integrationNumber" value="${gasListInstance?.integrationNumber}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="otherAmount"><g:message code="gasList.otherAmount.label" default="Other Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'otherAmount', 'errors')}">
                                    <g:textField name="otherAmount" value="${gasListInstance?.otherAmount}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="otherNumber"><g:message code="gasList.otherNumber.label" default="Other Number" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'otherNumber', 'errors')}">
                                    <g:textField name="otherNumber" value="${gasListInstance?.otherNumber}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="saleNumber"><g:message code="gasList.saleNumber.label" default="Sale Number" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'saleNumber', 'errors')}">
                                    <g:textField name="saleNumber" value="${gasListInstance?.saleNumber}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="saleTime"><g:message code="gasList.saleTime.label" default="Sale Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'saleTime', 'errors')}">
                                    <g:textField name="saleTime" value="${gasListInstance?.saleTime}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="stationCode"><g:message code="gasList.stationCode.label" default="Station Code" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'stationCode', 'errors')}">
                                    <g:textField name="stationCode" value="${gasListInstance?.stationCode}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="stationName"><g:message code="gasList.stationName.label" default="Station Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'stationName', 'errors')}">
                                    <g:select name="stationName.id" from="${com.surelution.projects.crm.OwnStation.list()}" optionKey="id" value="${gasListInstance?.stationName?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="weightDensity"><g:message code="gasList.weightDensity.label" default="Weight Density" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: gasListInstance, field: 'weightDensity', 'errors')}">
                                    <g:textField name="weightDensity" value="${gasListInstance?.weightDensity}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
